package com.ruoyi.binance.mapper;

import com.ruoyi.binance.domain.Binance15minDayAve;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 15分-日算术均价Mapper接口
 *
 * @author zq
 * @date 2025-08-16
 */
public interface Binance15minDayAveMapper {
    /**
     * 查询15分-日算术均价
     *
     * @param code 15分-日算术均价主键
     * @return 15分-日算术均价
     */
    public Binance15minDayAve selectBinance15minDayAveByCode(String code);

    public Binance15minDayAve selectLast15minDayAveByCode(String code);

    /**
     * 查询15分-日算术均价列表
     *
     * @param binance15minDayAve 15分-日算术均价
     * @return 15分-日算术均价集合
     */
    public List<Binance15minDayAve> selectBinance15minDayAveList(Binance15minDayAve binance15minDayAve);

    /**
     * 新增15分-日算术均价
     *
     * @param binance15minDayAve 15分-日算术均价
     * @return 结果
     */
    public int insertBinance15minDayAve(Binance15minDayAve binance15minDayAve);

    /**
     * 修改15分-日算术均价
     *
     * @param binance15minDayAve 15分-日算术均价
     * @return 结果
     */
    public int updateBinance15minDayAve(Binance15minDayAve binance15minDayAve);

    /**
     * 删除15分-日算术均价
     *
     * @param code 15分-日算术均价主键
     * @return 结果
     */
    public int deleteBinance15minDayAveByCode(String code);

    /**
     * 批量删除15分-日算术均价
     *
     * @param codes 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBinance15minDayAveByCodes(String[] codes);

    public Binance15minDayAve selectBinance15minDayAveByCodeAndTime(@Param("code") String code, @Param("time") String time);

    public List<Binance15minDayAve> select15minDayAveByTime(@Param("code") String code, @Param("startTime") String startTime, @Param("endTime") String endTime);

}